<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<script type="text/javascript" src="../Public/js/jquery.js"></script>

</head>
<body>
<fieldset>
<legend>查询窗口</legend>
<form action="__ACTION__" id="form">
栏目：<select name="class" onchange="$('#form').submit()">
<option value="-1">请选择栏目..</option>
<?php if(is_array($c_all)): $i = 0; $__LIST__ = $c_all;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><option value="<?php echo ($vo["id"]); ?>" <?php if(($vo["id"])  ==  $_GET['class']): ?>selected="selected"<?php endif; ?> ><?php echo ($vo["classname"]); ?>:&nbsp;&nbsp;<?php echo ($vo["sum"]); ?>￥</option><?php endforeach; endif; else: echo "" ;endif; ?>
</select> 或者 输入网站名称<input type="text" name="sea_txt" value="<?php echo $_GET["sea_txt"];?>"/>
<input type="submit" value="提交" />
</form>
</fieldset>
<p></p>
<?php if(($type)  ==  "list"): ?><table border="1" cellspacing="0">
<tr><td>栏目</td><td>网站名称</td><td>消费金额</td></tr>
<?php if(is_array($money_list)): $i = 0; $__LIST__ = $money_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><tr><td><?php echo ($vo["classname"]); ?></td><td><a href="__ACTION__/mid/<?php echo ($vo["id"]); ?>"><?php echo ($vo["linkname"]); ?></a></td><td><?php echo ($vo["moneys"]); ?></td></tr><?php endforeach; endif; else: echo "" ;endif; ?>

</table>
<?php echo ($page); ?><?php endif; ?>

<?php if(($type)  ==  "cnt"): ?><table border="1" cellspacing="0">
<tr><td>栏目</td><td>网站名称</td><td>消费金额</td><td>续费日期</td></tr>
<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><tr><td><?php echo ($vo["classname"]); ?></td><td><?php echo ($vo["linkname"]); ?></td><td><?php echo ($vo["addmoney"]); ?></td><td><?php echo (date('Y-m-d',$vo["addtime"])); ?></td></tr><?php endforeach; endif; else: echo "" ;endif; ?>
</table>
<p>总消费：<?php echo ($sum); ?></p>
<?php echo ($page); ?><?php endif; ?>
</body>
</html>